import Vue from 'vue'
import 'babel-polyfill'
import App from './App.vue'
import * as echarts from 'echarts'
import router from './router'

import VScaleScreen from 'v-scale-screen' // 自适应组件

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import { parseTime } from "@/utils/common";

import PageTitle from "@/components/PageTitle/index" // 标题组件
import ModuleBox from "@/components/ModuleBox/index" // 模块组件
import GTable from "@/components/Table/index" // 表格组件
import GDatePicker from "@/components/DatePicker/index" // 日期选择器组件

import '@/assets/font/DS-DIGIB.css';
import '@/assets/font/SHUHETI-bold.css';
import '@/assets/font/FontquanXinYiGuanHeiTi.css'

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
Vue.prototype.parseTime = parseTime

Vue.component('PageTitle', PageTitle)
Vue.component('ModuleBox', ModuleBox)
Vue.component('GTable', GTable)
Vue.component('GDatePicker', GDatePicker)

Vue.use(VScaleScreen)
Vue.use(Element)


new Vue({
  render: h => h(App),
  mounted() {
    document.title = process.env.VUE_APP_TITLE || '医疗设备数据监控中心';
  },
  router,
}).$mount('#app')
